package com.lh.eshop;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.web.bind.annotation.RequestMapping;

import com.lh.eshop.config.DruidDataSourceConfig;

@SpringBootApplication
public class Application {
	
	@Autowired
	DruidDataSourceConfig druidDataSourceConfig;

	public static void main(String[] args) {
		SpringApplication.run(Application.class, args);
	}
	
	@RequestMapping("/mytest")
	public DruidDataSourceConfig test() {
		return druidDataSourceConfig;
	}
}
